package com.atguigu.mapreduce.jvm;

/**
 * @version V1.0
 * @author: guangcheng
 * @date: 2021/11/29 14:48
 * @description:
 */
public class StrTableTest {

    public static void main(String[] args) {
        demo1();
    }

    public static void demo1() {

        String s1 = new String("ab");
        s1.intern();

        String s2 = "ab";

        System.out.println(s1 == s2);//false
        return;
    }
}

